/*
 * @Author: HeAo
 * @Date: 2022-08-09 15:25:16
 * @LastEditTime: 2022-08-10 11:15:15
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \JavaScripe\第三天\05-递归.js
 * 别乱动！
 */
function factorial(n) {
  if (n == 1) {
    return 1
  }
  return factorial(n - 1) * n
}
console.log(factorial(10));